package com.time.social.api;

import com.time.auth.entity.AuthUserDTO;
import com.time.auth.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 用户服务Feign接口扩展
 * 用于第三方登录模块调用auth模块的服务
 *
 * @author: HuangQi
 * @date: Created in 2025/01/XX
 * @description: 用户服务Feign接口扩展
 */
@FeignClient(name = "blog-auth-dev")
public interface UserFeignServiceExt {

    /**
     * 注册用户
     *
     * @param authUserDTO 用户信息
     * @return 注册结果
     */
    @RequestMapping("/user/register")
    Result<Boolean> register(@RequestBody AuthUserDTO authUserDTO);

    /**
     * 更新用户信息
     *
     * @param authUserDTO 用户信息
     * @return 更新结果
     */
    @RequestMapping("/user/update")
    Result<Boolean> update(@RequestBody AuthUserDTO authUserDTO);
}

